package com.xin2.bean;

import java.util.Date;

/*
      ORMb编程思想
      一个数据对应一个java类
      表中的一条记录对应一个java对象
      表中的一个字段对应对象的一个属性
 */
public class Customer {
    private int cu_id;
    private String cu_name;
    private String cu_email;
    private Date cu_birth;

    public Customer() {
    }

    public Customer(int cu_id, String cu_name, String cu_email, Date cu_birth) {
        this.cu_id = cu_id;
        this.cu_name = cu_name;
        this.cu_email = cu_email;
        this.cu_birth = cu_birth;
    }

    public int getCu_id() {
        return cu_id;
    }

    public void setCu_id(int cu_id) {
        this.cu_id = cu_id;
    }

    public String getCu_name() {
        return cu_name;
    }

    public void setCu_name(String cu_name) {
        this.cu_name = cu_name;
    }

    public Date getCu_birth() {
        return cu_birth;
    }

    public void setCu_birth(Date cu_birth) {
        this.cu_birth = cu_birth;
    }

    public String getCu_email() {
        return cu_email;
    }

    public void setCu_email(String cu_email) {
        this.cu_email = cu_email;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "cu_id=" + cu_id +
                ", cu_name='" + cu_name + '\'' +
                ", cu_email='" + cu_email + '\'' +
                ", cu_birth=" + cu_birth +
                '}';
    }
}
